﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.Windows;
using System.Windows.Controls;
using System.Windows.Data;
using System.Windows.Documents;
using System.Windows.Input;
using System.Windows.Media;
using System.Windows.Media.Imaging;
using System.Windows.Navigation;
using System.Windows.Shapes;
using PresentationProject;

namespace PresentationProject
{
    /// <summary>
    /// Interaction logic for ClassControl.xaml
    /// </summary>
    public partial class ClassControl : UserControl
    {
        public ClassControl()
        {
            InitializeComponent();

            classControl1 = new ClassControl1();
            platesControl = new PlatesControl();
            mouseControl = new MouseControl();
            classControl1.Width = 1366;
            classControl1.Height = 768;
            this.canvas1.Children.Add(classControl1);
            count = 0;
        }

        public ClassControl1 classControl1;
        public PlatesControl platesControl;
        public MouseControl mouseControl;

        public int count;


        public void nextClass()
        {
            if (count == 0)
            {
                this.canvas1.Children.Clear();
                this.canvas1.Children.Add(platesControl);
                count++;
            }
            else if (count == 1)
            {
                this.canvas1.Children.Clear();
                this.canvas1.Children.Add(mouseControl);
                count++;
            }
            else if (count == 2)
            {
                this.canvas1.Children.Clear();
                this.canvas1.Children.Add(classControl1);
                count = 0;
            }
        }
    }
}
